<?php
class CoreConfig
{
	public static $defaultController = "Index";
	
	public static $controllers = Array();
	
	
	public static function addController ( CoreConfigController $object ){
		self::$controllers[ $object->name ] = $object;
	}
	
	public static function getController( $name ){
		if( isset(self::$controllers[strtolower($name)]) ){
			return self::$controllers[strtolower($name)];
		}else{
			return new CoreConfigController("Error", "Index", "Empty", false, Array());
		}
	}
}
?>